package tum0r.misc;

/**
 * 工程: JavaTools<br>
 * 包: tum0r.misc<br>
 * 创建者: tum0r<br>
 * 创建时间: 2020/8/21 23:23<br>
 * <br>
 */
public class StringUtils {
    public static synchronized boolean isNullOrEmpty(String data) {
        return data == null || data.length() == 0;
    }

    public static synchronized boolean isNullOrEmptyOrSpace(String data) {
        return data == null || data.trim().length() == 0;
    }
}
